router.on('routeWillChange', () => (routerTransitionsPending = true));